package com.cmii.sjw.department.control.common;

/**
 * @Author: niuzhenyu
 * @Description:
 * @Date:Create：in 2022/8/10 14:25
 * @Modified By：
 */
public class ServiceRuntimeException extends RuntimeException{

    /**
     * 业务异常数据
     */
    private Object data;

    public ServiceRuntimeException(String errorMessageode) {
        super(errorMessageode);
    }

    public ServiceRuntimeException(String errorMessage, Throwable cause) {
        super(errorMessage, cause);
    }

    public ServiceRuntimeException(String errorMessage, Object data) {
        super(errorMessage);
        this.data = data;
    }

    public ServiceRuntimeException(String errorMessage, Object data, Throwable cause) {
        super(errorMessage, cause);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
